home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / demos / symph_3.exe / INSTALL.BAT < prev    next >
DOS Batch File  |  1992-06-17  |  6KB  |  225 lines

  1. echo off
  2. cls
  3. REM Installation program for Lotus Symphony Release 3 Demonstration (U.S.)
  4. REM (C) 1992 Copyright Show & Tell, Inc.  
  5. break=on
  6. batchman window 1, 1, 80, 25, 30h,-
  7. batchman window 3, 6, 8, 4, 0Fh
  8. batchman window 3, 17, 50, 2, 3Fh,
  9. batchman setcursor 4,6
  10. batchman cecho, C  Lotus 
  11. batchman setcursor 7,5
  12. batchman cecho, C  Install
  13. batchman setcursor 4, 17
  14. batchman cecho, C Symphony Release 3 Autodemo
  15. batchman setcursor 5, 17
  16. batchman cecho, C ........................................................
  17. batchman setcursor 8, 17
  18. batchman cecho, C This procedure creates a subdirectory named SYM3DEMO on 
  19. batchman setcursor 9, 17
  20. batchman cecho, C your hard disk and copies the demonstration files     
  21. batchman setcursor 10, 17
  22. batchman cecho, C into that subdirectory.
  23. batchman setcursor 12, 17
  24. batchman cecho, C The demo requires approximately 675 KB of disk space.
  25. batchman setcursor 16, 17
  26. batchman cecho, C Would you like to install the demonstration? (Y or N) [ ]
  27. batchman setcursor 24, 20
  28. batchman cecho, C Press [CONTROL-BREAK] to Exit Installation
  29. batchman setcursor 16, 72
  30. batchman getkey 'yn'
  31. IF ERRORLEVEL 2 goto NOINST
  32. IF ERRORLEVEL 1 goto DRIVE
  33. goto end
  34.  
  35. :NOINST
  36. batchman cecho, C N
  37. goto end
  38.  
  39. :drive
  40. batchman cecho, C Y
  41. batchman setcursor 18, 16
  42. batchman cecho, C  Which disk drive would you like to copy the demo to? [ ]
  43. batchman setcursor 19, 16
  44. batchman cecho, C             (Please enter a drive C through F)
  45. batchman setcursor 18, 71
  46. batchman getkey 'cdef'
  47. IF ERRORLEVEL 5 goto end
  48. IF ERRORLEVEL 4 goto installf
  49. IF ERRORLEVEL 3 goto installe
  50. IF ERRORLEVEL 2 goto installd
  51. IF ERRORLEVEL 1 goto installc
  52. IF ERRORLEVEL 0 goto end
  53. goto END
  54.  
  55. :old
  56. if x%1==x  goto :error
  57. if x%2==x  goto :error
  58.  
  59. :installc
  60. batchman cecho, C C
  61. batchman driveexist c:
  62. IF ERRORLEVEL 1 goto nextc
  63. IF ERRORLEVEL 0 goto NoDrive
  64. goto nextc
  65. :nextc
  66. free c: 675000      
  67. IF ERRORLEVEL 1 goto NoSpace
  68. batchman window  7, 15, 60, 15, 30h
  69. batchman setcursor 13, 17
  70. batchman cecho, C Installing the Symphony Autodemo on C:\SYM3DEMO...
  71. batchman setcursor 24, 19
  72. batchman cecho, C Press [CONTROL-BREAK] to cancel installation.
  73. batchman setcursor 25,1
  74. batchman direxist c:\SYM3DEMO
  75. IF ERRORLEVEL 1 goto copyc
  76. md C:\SYM3DEMO >nul
  77. goto copyc
  78. :copyc
  79. COPY DEMO.BAT C:\SYM3DEMO >NUL
  80. COPY SYM3DEMO.EXE C:\SYM3DEMO >NUL
  81. c:
  82. cd \SYM3DEMO
  83. goto FINISH
  84. if errorlevel 1 goto :end
  85. goto end
  86.  
  87. :installd
  88. batchman cecho, C D
  89. batchman driveexist d:
  90. IF ERRORLEVEL 1 goto nextd
  91. IF ERRORLEVEL 0 goto NoDrive
  92. goto nextd
  93. :nextd
  94. free d: 675000  
  95. IF ERRORLEVEL 1 goto NoSpace
  96. batchman window  7, 15, 60, 15, 30h
  97. batchman setcursor 13, 17
  98. batchman cecho, C Installing the Symphony Autodemo on D:\SYM3DEMO...
  99. batchman setcursor 24, 19
  100. batchman cecho, C Press [CONTROL-BREAK] to cancel installation.
  101. batchman setcursor 25,1
  102. batchman direxist d:\SYM3DEMO
  103. IF ERRORLEVEL 1 goto copyd
  104. md D:\SYM3DEMO >nul
  105. goto copyd
  106. :copyd
  107. COPY DEMO.BAT D:\SYM3DEMO >NUL
  108. COPY SYM3DEMO.EXE D:\SYM3DEMO >NUL
  109. d:
  110. cd \SYM3DEMO
  111. goto FINISH
  112. if errorlevel 1 goto :end
  113. goto end
  114.  
  115. :installe
  116. batchman cecho, C E
  117. batchman driveexist e:
  118. IF ERRORLEVEL 1 goto nexte
  119. IF ERRORLEVEL 0 goto NoDrive
  120. goto nexte
  121. :nexte
  122. free e: 675000                      
  123. IF ERRORLEVEL 1 goto NoSpace
  124. batchman window  7, 15, 60, 15, 30h
  125. batchman setcursor 13, 17
  126. batchman cecho, C Installing the Symphony Autodemo on E:\SYM3DEMO
  127. batchman setcursor 24, 19
  128. batchman cecho, C Press [CONTROL-BREAK] to cancel installation.
  129. batchman setcursor 25,1
  130. batchman direxist e:\SYM3DEMO
  131. IF ERRORLEVEL 1 goto copye
  132. md E:\SYM3DEMO >nul
  133. goto copye
  134. :copye
  135. COPY DEMO.BAT E:\SYM3DEMO >NUL
  136. COPY SYM3DEMO.EXE E:\SYM3DEMO >NUL
  137. e:
  138. cd \SYM3DEMO
  139. goto FINISH
  140. if errorlevel 1 goto :end
  141. goto end
  142.  
  143.  
  144. :installf
  145. batchman cecho, C F
  146. batchman driveexist f:
  147. IF ERRORLEVEL 1 goto nextf
  148. IF ERRORLEVEL 0 goto NoDrive
  149. goto nextf
  150. :nextf
  151. free f: 675000                      
  152. IF ERRORLEVEL 1 goto NoSpace
  153. batchman window  7, 15, 60, 15, 30h
  154. batchman setcursor 13, 17
  155. batchman cecho, C Installing the Symphony Autodemo on F:\SYM3DEMO...
  156. batchman setcursor 24, 19
  157. batchman cecho, C Press [CONTROL-BREAK] to cancel installation.
  158. batchman setcursor 25,1
  159. batchman direxist f:\SYM3DEMO
  160. IF ERRORLEVEL 1 goto copyf
  161. md F:\SYM3DEMO >nul
  162. goto copyf
  163. :copyf
  164. COPY DEMO.BAT F:\SYM3DEMO >NUL
  165. COPY SYM3DEMO.EXE F:\SYM3DEMO >NUL
  166.  
  167. f:
  168. cd \SYM3DEMO
  169. goto FINISH
  170. if errorlevel 1 goto :end
  171. goto end
  172.  
  173. :nodrive
  174. batchman window 7, 15, 60, 17, 30h
  175. batchman setcursor 14, 22
  176. batchman cecho, C The specified disk drive does not exist!
  177. batchman setcursor 15, 17
  178. batchman cecho, C Please try installing the demo on an existing drive.
  179. batchman setcursor 24, 20
  180. batchman cecho, C      Press [ESCAPE] to return to DOS...        
  181. batchman setcursor 25, 40
  182. batchman getkey
  183. IF ERRORLEVEL 1 goto end
  184. goto end
  185.  
  186. :noinstall
  187. batchman window 7, 15, 60, 17, 30h
  188. batchman setcursor 14, 15
  189. batchman cecho, C The INSTALL program does not work for the specified drive!
  190. batchman setcursor 15, 24
  191. batchman cecho, C Please try installing the demo on Drives C-F.
  192. batchman setcursor 24, 20
  193. batchman cecho, C      Press [ESCAPE] to return to DOS...        
  194. batchman setcursor 25, 40
  195. batchman getkey
  196. IF ERRORLEVEL 1 goto end
  197. goto end
  198.  
  199. :nospace
  200. batchman window 7, 15, 60, 17, 30h
  201. batchman setcursor 14, 25
  202. batchman cecho,   You do not have enough diskspace!
  203. batchman setcursor 15, 24
  204. batchman cecho,   You need 675 KB to install the demo.
  205. batchman setcursor 24, 20
  206. batchman cecho, C      Press [ESCAPE] to return to DOS...        
  207. batchman setcursor 25, 40
  208. batchman getkey
  209. IF ERRORLEVEL 1 goto end
  210. goto end
  211.  
  212. :FINISH
  213. cls
  214. echo  
  215. echo                             Installation completed.                         
  216. echo  
  217. echo        To run the Symphony Release 3 Autodemo type DEMO then [RETURN].
  218. echo  
  219. goto DONE
  220.  
  221. :END
  222. cls
  223.  
  224. :DONE
  225.